package cn.stylefeng.guns.modular.system.mapper;

import cn.stylefeng.guns.modular.system.entity.SendGoods;
import cn.stylefeng.guns.modular.system.model.params.SendGoodsParam;
import cn.stylefeng.guns.modular.system.model.result.SendGoodsResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 发货单 Mapper 接口
 * </p>
 *
 * @author 小飞
 * @since 2019-07-17
 */
public interface SendGoodsMapper extends BaseMapper<SendGoods> {

    /**
     * 获取列表
     *
     * @author 小飞
     * @Date 2019-07-17
     */
    List<SendGoodsResult> customList(@Param("paramCondition") SendGoodsParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 小飞
     * @Date 2019-07-17
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") SendGoodsParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 小飞
     * @Date 2019-07-17
     */
    Page<SendGoodsResult> customPageList(@Param("page") Page page, @Param("paramCondition") SendGoodsParam paramCondition,@Param("userId") Long userId);

    /**
     * 获取分页map列表
     *
     * @author 小飞
     * @Date 2019-07-17
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") SendGoodsParam paramCondition);

    Page<SendGoodsResult> selectSendGoodList(@Param("page") Page page, @Param("code") Integer code,@Param("userId") Long userId);
}
